<html>
<head>
    <meta charset="utf-8">
    <title>成功提示</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="alert alert-dismissable alert-success">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4>
                    成功!
                </h4> <strong>${msg!""}</strong><a href="${url}" class="alert-link">&nbsp;&nbsp;<a id="remainTime"
                                                                                                   style="font-weight: bold;">3</a>s后自动跳转</a>
            </div>
        </div>
    </div>
</div>

</body>

<script type="text/javascript">
    var remainTime = 3;

    //每秒执行一次
    window.setInterval("setRemainTime()", 1000);

    //生成倒计时
    function setRemainTime() {
        remainTime -= 1;
        document.getElementById("remainTime").innerHTML = remainTime;
        if (remainTime == 0) {
            location.href = "${url}";
        }
    }

</script>

</html>